/**
 * create by young (young2f@outlook.com) on 2020/9/12
 */

'use strict';
import React from 'react';
import {connect} from 'dva/index';
import {DatePicker, Form, Select, Tabs} from 'antd';

import styles from '../index.less';
import FormBase from '../../components/Base/FormBase';
import notify from "../../components/NotificationExtra";
import moment from 'moment';
import 'moment/locale/zh-cn';
import ProcureReturnOfGoods from "./tabs/ProcureReturnOfGoods";

moment.locale('zh-cn');
const {RangePicker} = DatePicker;
const _ = require('lodash');
const {Option} = Select;
const table = 'ProcureOrder';
const title = '采购租用';

@Form.create()
@connect(({
            user,
            global,
            dict,
            vendor,
            procure
          }) => ({...user, ...global, ...procure, ...dict, ...vendor}))
export default class ReturnAndReplenishment extends FormBase {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() {

  }


  render() {
    const {_notify} = this.props;
    console.log('11111',_notify)
    // if (_notify) {
    //   notify(_notify);
    // }

    return (
      <Form className={styles.content}>
        <Tabs defaultActiveKey="1">
          <Tabs.TabPane tab={'退货'} key={'1'}>
            <ProcureReturnOfGoods></ProcureReturnOfGoods>
          </Tabs.TabPane>
          {/*<Tabs.TabPane tab={'补退货'} key={'2'}>*/}
          {/*  <ProcureReplenishmentOfGoods></ProcureReplenishmentOfGoods>*/}
          {/*</Tabs.TabPane>*/}
        </Tabs>

      </Form>
    );
  }
}
